<html>
    <head>
        <title>Borrar administrador</title>
        <link rel='stylesheet' href='estilos.css'>
    </head>
    <body>
    <p>
		<label class="Titulo">Delete administrator</label>
		</p>
        <form class='introducir' method='POST' action='deleteadministrator.php'>
            <div><label class="Titulo2" >What administrator do you want to delete ?</label> <select name="empleado" size=1>
			<?php
				include "conexion.php";
				session_start();				
				$mail= $_SESSION['variable'];
				//Solo muestro los que si son administradores quitando el que tengo activo
				$responsables = mysql_query("SELECT * FROM user m where administrator='1' and user_mail!='$mail'"); 
				if (mysql_num_rows($responsables)==0){?>
					   	 <head> 
					    	<script>
				            	window.alert("There are no users");
				                history.back();
				            </script>
					    </head> 
				    	<?php
				}while($resp = mysql_fetch_array($responsables)) { 
					echo "<option value='".$resp['user_mail']."'>".$resp['user_mail']."</option>";
				}include "cerrar_conexion.php";
				?> 
			</select>
			</div>
			<div><input type='submit' value='Submit' class='boton'></div>			
        </form>
    </body>
</html>